<html lang="zh">
<head>
    <meta charset="UTF-8">
    <title>房间列表</title>
    <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0, user-scalable=no">
    <link rel="stylesheet" href="./?/file&name=base.min.css">
    <link rel="icon" href="./?/file&name=logo.png">
    {CSS}
</head>
<body>
<div class="content">
    <div class="content-heading">
        <div class="container">
            <h2 class="text-center heading">房间列表</h2>
            <h3 class="text-center heading margin-no-top">房间数量：<b id="roomCount">0</b></h3>
            <p class="text-center">
                <a class="btn waves-button waves-effect waves-light" href="./?/create">去创建房间</a>&nbsp;
                <a class="btn waves-button waves-effect waves-light" href="./?/">返回首页</a>
            </p>
        </div>
    </div>
    <div class="container">
        <section class="content-inner">
            <div class="card-wrap">
                <div class="row" id="list-main-div"><h4 class="text-center">还没有房间，快去创建一个吧！</h4></div>
            </div>
        </section>
    </div>
</div>
<div>
    <button onclick="history.back();" style="position: fixed;top: 0;left: 0;z-index: 999;" class="btn btn-lg waves-button waves-effect waves-light"><span class="fa fa-arrow-left fa-2x"></span></button>
    <button id="back" onclick="window.open(`./?/`,`_self`)" style="position: fixed;top: 0;left: 84px;z-index: 999;" class="btn btn-lg waves-button waves-effect waves-light"><span class="fa fa-home fa-2x"></span></button>
    <button id="refresh" onclick="location.reload()" style="position: fixed;top: 0;left: 168px;z-index: 999;" class="btn btn-lg waves-button waves-effect waves-light"><span class="fa fa-refresh fa-2x"></span></button>
</div>
<div class="footer">
    <p>Developed by SCH</p>
    <p>Chat-Lite {VERSION}<br>Running with PHP {PHPVERSION}</p>
</div>


<a id="open-modal-delete" data-toggle="modal" href="#name-modal-delete"></a>
<div aria-hidden="true" class="modal fade" id="name-modal-delete" role="dialog" tabindex="-1">
    <div class="modal-dialog modal-xs">
        <div class="modal-content">
            <div class="modal-heading">
                <a class="modal-close" data-dismiss="modal">&times;</a>
                <h2 class="modal-title">删除房间</h2>
            </div>
            <div class="modal-inner">
                <p>确定要删除房间：<b id="deleteRoomId"></b>？</p>
            </div>
            <div class="modal-footer">
                <p class="text-right">
                    <button class="btn btn-flat btn-alt" data-dismiss="modal" type="button">取消</button>
                    <button class="btn btn-flat btn-alt" id="deleteBtn">确定</button>
                </p>
            </div>
        </div>
    </div>
</div>
{SetColor}
<script src="./?/file&name=jquery.min.js"></script>
<script src="./?/file&name=jquery.cookie-1.4.1.min.js"></script>
<script src="./?/file&name=base.min.js"></script>
<script src="./?/file&name=SetColor.js"></script>
{JS}
</body>
</html>